
class User < ActiveRecord::Base

  has_many :providers
  has_many :happenings, :through=>:providers
  
  def fetch_happenings
    
  end 
  
  # we don't really know much about this person
  def self.get(openid_url)
    find_first(["openid_url = ?", openid_url])
  end  
  
  protected
    validates_uniqueness_of :openid_url, :on => :create
    validates_presence_of :openid_url

end